<?php
namespace app\api\controller\v2;
use app\api\controller\Common;

class News extends Common{
	var $modelDb;
	public function _initialize(){
		parent::_initialize();
		$this->modelDb = model("Banner");

		if($this->check_auth() === false){
            return $this->app_error('签名失效',201);
        }
	}
	public function index(){
		$data = [
			// 'banner'=>model("Banner")->list_datas($this->postData),
			'banner'=> model("News")->list_datas($this->postData),
		];
    	if($data){
    		return $this->app_success($data);
    	}
    	else{
    		return $this->app_error("获取失败");
    	}
	}
}